package com.example.segflow.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.segflow.model.GantryBasicXfz;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * segflow BaseTestService class
 *
 * @author xisheng
 * @date 2022/12/29
 */
@SpringBootTest
@Slf4j
public class BaseTestService {

    @Autowired
    GantryBasicXfzService gantryBasicXfzService;

    @Test
    public void baseTest () {
        String gantryId = "G007545005002710010";
        QueryWrapper<GantryBasicXfz> qwGantry = new QueryWrapper<>();
        qwGantry.lambda().eq(GantryBasicXfz::getGantryId,gantryId);
        GantryBasicXfz gantryBasicXfz = gantryBasicXfzService.getOne(qwGantry);

        log.info(gantryBasicXfz.toString());
    }

}
